package com.gj.model;

import java.util.Date;

public class TransactionMessage {
    /**
     * 主键id
     */
    private Long id;
    /**
     * 消息内容
     */
    private String message;
    /**
     *队列名称
     */
    private String queue;
    /**
     * 发送消息的系统
     */
    private String sendSystem;
    /**
     * 重发次数
     */
    private Integer sendCount;
    /**
     * 创建时间
     */
    private Date cDate;
    /**
     * 最近发送消息时间
     */
    private Date sendDate;
    /**
     * 消息状态 ：0 等待消费，1 已消费，2 已死亡
     */
    private Integer status=0;
    /**
     * 死亡次数条件，由使用方决定，默认为发送十次还没被消费则标记死亡，人工介入
     */
    private Integer dieCount=10;
    /**
     * 消费时间
     */
    private Date consumerDate;
    /**
     * 消费系统
     */
    private String consumerSystem;
    /**
     * 死亡时间
     */
    private Date dieDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    public String getQueue() {
        return queue;
    }

    public void setQueue(String queue) {
        this.queue = queue == null ? null : queue.trim();
    }

    public String getSendSystem() {
        return sendSystem;
    }

    public void setSendSystem(String sendSystem) {
        this.sendSystem = sendSystem == null ? null : sendSystem.trim();
    }

    public Integer getSendCount() {
        return sendCount;
    }

    public void setSendCount(Integer sendCount) {
        this.sendCount = sendCount;
    }

    public Date getcDate() {
        return cDate;
    }

    public void setcDate(Date cDate) {
        this.cDate = cDate;
    }

    public Date getSendDate() {
        return sendDate;
    }

    public void setSendDate(Date sendDate) {
        this.sendDate = sendDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDieCount() {
        return dieCount;
    }

    public void setDieCount(Integer dieCount) {
        this.dieCount = dieCount;
    }

    public Date getConsumerDate() {
        return consumerDate;
    }

    public void setConsumerDate(Date consumerDate) {
        this.consumerDate = consumerDate;
    }

    public String getConsumerSystem() {
        return consumerSystem;
    }

    public void setConsumerSystem(String consumerSystem) {
        this.consumerSystem = consumerSystem;
    }

    public Date getDieDate() {
        return dieDate;
    }

    public void setDieDate(Date dieDate) {
        this.dieDate = dieDate;
    }
}